package com.idc.quotation.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.idc.quotation.entity.SystemUser;

@Mapper
public interface SystemUserMapper extends BaseMapper<SystemUser> {
	@Select("SELECT max(id) FROM system_user")
	Long maxId();

	@Select("SELECT phone_number,count(*) FROM system_user group by phone_number")
	List<Map<String, Object>> countData();
}